package com.liuyou.weather;

public class WeatherData {
    public void setData(double temperature, double pressure, double humidity) {
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidity = humidity;
        dataChange();
    }

    public void dataChange() {
        weatherWebsideCurrentCondition.update(temperature, pressure, humidity);
    }

    public WeatherData(WeatherWebsideCurrentCondition weatherWebsideCurrentCondition) {
        this.weatherWebsideCurrentCondition = weatherWebsideCurrentCondition;
    }

    private double temperature;
    private double pressure;
    private double humidity;
    private WeatherWebsideCurrentCondition weatherWebsideCurrentCondition;

}
